export const tableOptionAddrz = {
  column: [{
    "type": "input",
    "label": "卡号",
    "prop": "cardOrder",
    cell: true,
  }, {
    "type": "input",
    "label": "类型",
    "prop": "ticketType",
    cell: true,
    hide:true,
  }]
}

export const tableOptionAddts = {
  column: [{
    "type": "input",
    "label": "卡号",
    "prop": "cardOrder",
    cell: true,
  }, {
    "type": "input",
    "label": "类型",
    "prop": "ticketType",
    cell: true,
    hide:true,
  }]
}

export const tableOptionAddyj = {
  sumColumnList: [
    {
      name: 'ticketNum',
      type: 'sum'
    }
  ],
  column: [{
    "type": "select",
    "label": "车票名称",
    "prop": "ticketName",
    cell: true,
    dicUrl:'/support/swpmticketcardtypeparam/dict/YJZP',
    props: {
      label: 'subName',
      value: 'id'
    },
  }, {
    "type": "number",
    "label": "张数",
    "prop": "ticketNum",
    cell: true,
  }]
}

export const tableOptionAddyx = {
  column: [{
    "type": "select",
    "label": "车票名称",
    "prop": "ticketName",
    cell: true,
    dicUrl:'/support/swpmticketcardtypeparam/dict/YXCP',
    props: {
      label: 'subName',
      value: 'subEnName'
    },
    component: 'ticket-name-select',
    params: {
      ticketAmountKey: 'ticketPrice',
      ticketCountKey: 'ticketTimes'
    },
  }, {
    "type": "input",
    "label": "次数",
    "prop": "ticketTimes",
  },
  {
    "type": "number",
    "label": "金额",
    "prop": "ticketPrice",
    precision: 2,
  }, {
    "type": "number",
    "label": "张数",
    "prop": "ticketNum",
    cell: true,
  }]
}

export const tableOptionAddyz = {
  column: [{
    "type": "select",
    "label": "车票名称",
    "prop": "ticketName",
    cell: true,
    dicUrl:'/support/swpmticketcardtypeparam/dict/YZDCP',
    props: {
      label: 'subName',
      value: 'id'
    },
  }, {
    "type": "number",
    "label": "张数",
    "prop": "ticketNum",
    cell: true,
  } ]
}
